<template>
  <div class="app-container rebate-rules">
    <el-tabs v-model="typeCode" class="demo-tabs" @tab-change="changeTab">
      <el-tab-pane v-hasPermi="['system:rebateRules:factory']" label="工厂返佣" name="0"></el-tab-pane>
      <el-tab-pane v-hasPermi="['system:rebateRules:business']" label="商家返佣" name="1"></el-tab-pane>
    </el-tabs>
    <!-- 工厂返佣 -->
    <factory v-if="typeCode == '0'"></factory>
    <!-- 商家返佣 -->
    <business v-if="typeCode == '1'"></business>
  </div>
</template>
<script setup>
import factory from "./factory";
import business from "./business";
import { ref } from "vue";

// 标签页
const typeCode = ref("0");

// tab标签变化
const changeTab = value => {};
</script>
<style scoped lang="scss"></style>
